<extend name="./Common/View/Public/imports.html" />
<block name="page_title">导入参评用户</block>

<block name="main">
    <form class="layui-form" method="post" action="{:strtolower(__INFO__)}" lay-filter="pageForm">
        <input type="hidden" name="exists" value="2">
        <input type="hidden" name="error" value="2">
        <div class="layui-form-item">
            <label class="layui-form-label">模板文件</label>
            <div class="layui-input-inline">
                <a href="__PUBLIC__/excel/rate_user.xlsx" target="_blank">rate_user.xlsx</a>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">数据文件</label>
            <div class="layui-input-inline">
                <input type="text" name="excel" id="excel" lay-verify="required" placeholder="请选择文件后上传" autocomplete="off" class="layui-input" />
            </div>
            <div class="layui-form-mid layui-word-aux"><button class="layui-btn layui-btn-sm" type="button" id="fileBtn">浏览</button></div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">评价项目</label>
            <div class="layui-input-block">
                <select name="project_id" id="project_id" lay-filter="project_id" lay-verify="required" api="rate/project/slist" value="{$project.id}"  empty="评价项目">
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">用户类型</label>
            <div class="layui-input-block">
                {:W('Todo/Dict/radio',array('USER_TYPE','user_type',1))}
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">参与方式</label>
            <div class="layui-input-block">
                {:W('Todo/Dict/radio',array('RATE_USER_TYPE','type',1))}
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit lay-filter="pageForm">立即提交</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
    </form>
</block>